export type role = 'user' | 'assistant'
export type status = 'thinking' | 'normal' | 'error'
export interface File {
  id: number
  name: string
  url: string
}
export interface Message {
  id: number
  content: string
  role: role
  files?: File[]
  status?: status
}
export interface MessageContainerExpose {
  messageList: Message[]
  insertMessage: (content: string, role?: role, status?: status) => number
  changeMessage: (content: string, type?: 'new' | 'insert', index?: number, status?: status) => void
  clearMessage: () => void
  insertFile: (files: File[], index?: number) => void
}
